home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 August / CICA - The Ultimate Collection of Shareware for Windows (Disc 2) (August 1995).iso / disc2 / programr / vbasic / generic.exe / TN003.TXT < prev   
Text File  |  1993-06-02  |  2KB  |  52 lines

  1. Microsoft Visual Basic 3.00                            Microsoft Corporation
  2. Technical Notes
  3.  
  4. TN003.TXT:  GENER.VBX Custom Control Notes
  5.  
  6. ========================================================================
  7.  
  8. ----------------------------------------------
  9. Creating a Custom Control from an Existing DLL
  10. ----------------------------------------------
  11. If you have an existing set of functions in a DLL, you can easily create
  12. a custom control that allows a user to access the functions indirectly.
  13. This allows you to use the custom control in Visual Basic as well as in
  14. Visual C++ environments.
  15.  
  16. A custom control that provides a high-level interface
  17. to a set of DLL functions is referred to a wrapper. The Communications custom
  18. control, shipped in both the Visual Control Pack and the Visual Basic 3.0
  19. Professional Edition, is an example of a custom control wrapper.
  20.  
  21. The Control Development Guide contains Appendix E, "Creating a Custom Control
  22. from an Existing DLL", which explains some of the issues involved in creating
  23. a custom control wrapper.
  24.  
  25. ----------------
  26. GENER.VBX Sample
  27. ----------------
  28. The GENER.VBX sample illustrates some techniques in creating a custom control
  29. wrapper. The sample is made up of the following files:
  30.  
  31.     GENER.C
  32.     GENER.DEF
  33.     GENER.H
  34.     GENER.RC
  35.     GENER.VBX
  36.     GENERCD.BMP
  37.     GENERCU.BMP
  38.     GENEREU.BMP
  39.     GENERMU.BMP
  40.     GENFUN.C
  41.     GENFUN.H
  42.     MAKEFILE
  43.  
  44. ---------------
  45. GENERAPP Sample
  46. ---------------
  47. The GENERAPP Visual Basic sample uses the GENER.VBX custom control. The sample
  48. is made up of the following files:
  49.  
  50.     GENERAPP.FRM
  51.     GENERAPP.MAK
  52.